package cn.ljy.mes.service;

import cn.ljy.authority.service.BaseService;
import cn.ljy.mes.model.ShopProduct;
import cn.ljy.mes.model.query.ShopProductQuery;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public interface ShopProductService extends BaseService<ShopProduct, ShopProductQuery> {
    /**
     * 将选中产品都转移到指定产品栏目下
     * @param productIds 该参数为Product类的标识属性结合
     * @param productTypeId 要转移到的栏目标识符
     */
    void updateProductToTransferProductTypeBySelect(@NotEmpty(message="请选择要转移的产品") String[] productIds, @NotNull(message="请选择要转移的产品栏目") Long productTypeId);
}
